package com.snimay.app.user.vo;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.snimay.app.role.vo.Role;
import com.snimay.heibernate.Annotation.table;

/**   
 * @Title      : UserRole.java
 * @Package    : com.snimay.users.vo
 * @Description: TODO 
 * @author     : xxy
 * @date       : 2018年4月27日 下午5:36:35
 * @version    : V1.0   
 */
@Entity
@Table(name = "SYS_UserRole")
@table(query = "name", name = "用户角色",size=10)
public class UserRole {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long id;
	@ManyToOne(cascade = CascadeType.ALL)  
	public Role data;
}
